package com.hh.core.exception;

import com.hh.core.enums.ExceptionEnum;

/**
 * 
* @ClassName: JsonException  
* @Description: TODO(ajax 或  其他传递json信息 异常)  
* @author hxn
* @date 2018年1月23日 上午10:52:39  
*
 */
public class JsonException extends RuntimeException{

	private static final long serialVersionUID = 4997362904170018397L;
	
	private ExceptionEnum exceptionEnum;
	
	private Object data;
	
	public JsonException(ExceptionEnum exceptionEnum){
		this.exceptionEnum = exceptionEnum;
	}

	public JsonException(ExceptionEnum exceptionEnum,Object data){
		this.exceptionEnum = exceptionEnum;
		this.data = data;
	}
	
	public ExceptionEnum getExceptionEnum() {
		return exceptionEnum;
	}

	public void setExceptionEnum(ExceptionEnum exceptionEnum) {
		this.exceptionEnum = exceptionEnum;
	}

	public Object getData() {
		return data;
	}

	public void setData(Object data) {
		this.data = data;
	}

}
